#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.http import HttpResponse
import logging

# 使用日志器
from cadmin.settings import SITE_NAME

logger = logging.getLogger('blog.views')


def global_settings(request):
    return {'SITE_NAME': SITE_NAME}


def index(request):
    try:
        file = open('sss.txt', 'r')
    except Exception as e:
        logging.error(e)
    return HttpResponse('Blog Index.....')
